<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>指令</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
    <div id="Application" style="text-align: center;">
        <!-- v-bind:[prop] 可以省略为 :[prop] 
            <h1 :[prop]="name" v-if="show">标题</h1>-->
        <h1 v-bind:[prop]="name" v-if="show">标题</h1>
    </div>
    <script>
        const App= {
            data(){
                return {
                    show:true,
                    prop:"class",
                    name:"h1"
                }
            }
        }
        Vue.createApp(App).mount("#Application")
    </script>
</body>
</html>